package com.example.controller;

import com.example.service.AsyncService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 异步测试入口
 */
@RestController
public class EventPublishController {

	@Resource
	private AsyncService asyncService;

	@PostMapping("/testEventPublish")
	public String testEventPublish() {

		return asyncService.testEventPublish();

	}

}
